package com.netmi.myjectpack.paging.bean;

import com.google.gson.annotations.SerializedName;

import java.util.Objects;

/**
 * @author tgw
 * @date 2021/4/29
 * @describe
 */
public class RepoBean {

    @SerializedName("id")
    private int id;
    @SerializedName("name")
    private String name;
    @SerializedName("description")
    private String description;
    @SerializedName("stargazers_count")
    private String starCount;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStarCount() {
        return starCount;
    }

    public void setStarCount(String starCount) {
        this.starCount = starCount;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RepoBean repoBean = (RepoBean) o;
        return id == repoBean.id && Objects.equals(name, repoBean.name) && Objects.equals(description, repoBean.description) && Objects.equals(starCount, repoBean.starCount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, description, starCount);
    }
}
